package com.situ.spring.controller;

import com.situ.spring.service.ICourseService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/*
<bean name="courseController" class="com.situ.spring.controller.CourseController">
</bean>
*/
@Controller("courseController")
public class CourseController {
    // <property name="courseService" ref="courseService"/>
    @Resource(name = "courseService")
    private ICourseService courseService;

    public void selectAll() {
        System.out.println("CourseController.selectAll");
        courseService.selectAll();
    }
}
